package com.charles.video.system.controller;

import com.charles.video.common.core.controller.BaseController;
import com.charles.video.common.core.responseDomain.TableInfo;
import com.charles.video.system.mapper.ApiLogMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/log")
public class ApiLogController extends BaseController {

    @Resource
    private ApiLogMapper apiLogMapper;

    /**
     * API 访问日志
     */
    @GetMapping("/queryAllApiLog")
    public TableInfo queryAllApiLog() {
        startPage();
        return getDataTable(apiLogMapper.queryAllApiLog());
    }

}
